           package com.java.diagnostics.visualizer.parser.vgc.converters;
           
           import com.java.diagnostics.visualizer.data.axes.UnitConverterDefinition;
           import com.java.diagnostics.visualizer.impl.axes.UnitConverterDefinitionImpl;
           import com.java.diagnostics.visualizer.parser.vgc.constants.VGCAxes;
           import com.java.diagnostics.visualizer.parser.vgc.constants.WRTEvents;
           
           public class WRTEventUnitConverter extends EnumerationUnitConverter
           {
             public static final String BASEUNITS = VGCAxes.EVENTCODE;
             public static final String LABEL = VGCAxes.EVENT;
             public static final String UNITS = VGCAxes.EVENTUNITS;
           
             private static final UnitConverterDefinition definition = new UnitConverterDefinitionImpl(
               BASEUNITS, LABEL, UNITS, false);
           
             public String formatUnconverted(double number)
             {
               return WRTEvents.intToName((int)Math.round(number));
             }
           
             public double parseUnconverted(String region)
             {
               return WRTEvents.nameToInt(region);
             }
           
             public UnitConverterDefinition getDefinition()
             {
               return definition;
             }
           }

